package org.caps.website.home;

import org.apache.log4j.Logger;

import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.Path;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;

/**
 * 
 * @author regisrocha
 * 
 * @description Classe controller para requisicoes para home.
 * 
 */
@Resource
public class HomeController {

	/**
	 * LOG
	 */
	private static final Logger LOG = Logger.getLogger(HomeController.class);

	private final Result result;

	/**
	 * @description Default constructor
	 * 
	 * @param result
	 */
	public HomeController(Result result) {
		this.result = result;
	}

	/**
	 * @author regis.rocha
	 * 
	 * @description Recebe a requisicao para apresentar os dados da pagina
	 *              principal.
	 * 
	 */
	@Path("/principal")
	@Get
	public void welcome() {
		result.include("message", "Welcome to CAPS");

	}
}
